<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>重置账户详情</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../resources/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="../../resources/css/style.css" media="all">
    <style>
        .layui-table{margin-top: 30px;}
        .layui-btn{position: fixed;top: 10px;}
        .layui-table th{width: 10%;}
        .layui-table tr:nth-child(even){background-color: #f5f5f5;}
    </style>
</head>
<body>
<button class="layui-btn" type="button" onclick="history.back(-1);"><i class="layui-icon"></i></button>
<div class="details">
    <table class="layui-table">
        <tr>
            <th>支付企业</th>
            <td class="qiyes"></td>
        </tr>
        <tr>
            <th>支付单号</th>
            <td class="danhaos"></td>
        </tr>
        <tr>
            <th>支付金额</th>
            <td class="money"></td>
        </tr>
        <tr>
            <th>支付时间</th>
            <td class="times">1</td>
        </tr>
        <tr>
            <th>支付方式</th>
            <td class="mode"></td>
        </tr>
        <tr>
            <th>负责人</th>
            <td class="FZR"></td>
        </tr>
        <tr>
            <th>联系电话</th>
            <td class="deteles"></td>
        </tr>
        <tr>
            <th>商户单号</th>
            <td class="Sdanhaos"></td>
        </tr>
        <tr>
            <th>绑定用户</th>
            <td class="bindings"></td>
        </tr>
    </table>
</div>
<script src="../../resources/layui/layui.js" charset="utf-8"></script>
<script src="../../resources/js/style.js"></script>
<script src="../../resources/js/api.js"></script>

<script>

    layui.use(['form', 'layedit', 'laydate','table','element'], function() {
        var form = layui.form
            , layer = layui.layer
            , layedit = layui.layedit
            , laydate = layui.laydate
            , table = layui.table
            , element = layui.element;

        var d=sessionStorage.objs;
        d=JSON.parse(d);
        d=d.data;
        var fangshi;
        var yonghus;
        if(d.paytype==0&&d.tradeNo.length<1){
            fangshi='等待支付';
        }else if(d.paytype==0&&d.tradeNo.length>0){
            fangshi='线上支付';
        }else{
            fangshi='线下支付';
        }
        d.userid?yonghus='已绑定':yonghus='未绑定';

        console.log(d);
        $('.qiyes').html(d.compName);
        $('.danhaos').html(d.tradeNo);
        $('.money').html(d.money);
        $('.times').html(d.compName);
        $('.mode').html(fangshi);
        $('.FZR').html(d.director);
        $('.deteles').html(d.dmotel);
        $('.Sdanhaos').html(d.outTradeNo);
        $('.bindings').html(yonghus);



    })



</script>
</body>
</html>